from os.path import dirname, basename, isfile, join
import glob
import importlib

modules = glob.glob(join(dirname(__file__), "*.py"))
controllers = [basename(f)[:-3] for f in modules if isfile(f) and basename(f) != '__init__.py']
for controller in controllers:
    importlib.import_module("."+controller, __package__)
